package com.eric.domain.po;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户权限表
 * </p>
 *
 * @author 新哥
 * @since 2024-03-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("user_permission")

public class UserPermission implements Serializable {

    private static final long serialVersionUID = 1L;


    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;


    @TableField("user_id")
    private Integer userId;

    @TableField("permission_id")
    private Integer permissionId;

    @TableField("deleted")
    @TableLogic
    private Integer deleted;

    @TableField("version")
    @Version
    private Integer version;

    @TableField("status")
    private Integer status;





    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private Date createTime;


    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


    @TableField("create_by")
    private String createBy;

    @TableField("last_update_by")
    private String lastUpdateBy;


}
